#ifndef _VIP_LAYER_H_
#define _VIP_LAYER_H_
#include "cocos2d.h"
#include "cocos/ui/CocosGUI.h"


class VipLayer : public cocos2d::Layer
{
private:
	cocos2d::ui::Widget*							UI;
	cocos2d::Ref*									m_target;
	cocos2d::ui::SEL_TouchEvent						m_selector;
	cocos2d::ui::LoadingBar*						m_bar;
public:
	VipLayer(void);
	~VipLayer(void);
	virtual bool init();
	static VipLayer *create();
	void SetBtnCallBack(cocos2d::Ref* target,cocos2d::ui::SEL_TouchEvent selector);
	//void OnBtnCallBack(cocos2d::Ref* sender,cocos2d::ui::TouchEventType type);
	void updateView();

	static int getVipLevel(int vipValue);
	static float getVipMultiple(int vipLevel);
	static float getVipProgress(int vipLevel,int vipValue);
};

#endif // !_VIP_LAYER_H_
